/**
 * Created by Dalyn on 2017/3/13.
 */
import React from "react";
import { hashHistory } from 'react-router';
import "./Limit.css";
import { Icon } from 'antd';
import {Modal} from 'fly';

export default class handleOK extends React.Component{
    constructor(props){
        super(props);
        this.state={
            handleOK:false
        };
        this.style={
            alert:{
                width:"300px",
                height:"160px",
                margin:"0 auto"
            }
        }
    }
    handleOk = (e) => {
        this.props.commitsurt();
        this.setState({
            handleOK: false,
        });
    };
    handleCancel = (e) => {
        this.setState({
            handleOK: false,
        });
    }
    render(){
        return (
            <Modal visible={this.state.handleOK} title="是否保存" onOk={this.handleOk} onCancel={this.handleCancel} style={{width:"440px",height:"270px",display:"block"}}>
                <div style={{textAlign:"center"}}>
                    <Icon type="exclamation-circle-o" style={{fontSize:40,color:"#f8aa22"}}/>
                    <span style={{marginLeft:20,position:"relative",top:-9,fontSize:15}}>
                        确定保存此操作吗？
                    </span>
                </div>
            </Modal>
        )
    }
}
